package com.mercury.article.service.impl;

import com.mercury.article.entity.HomeArticleDetail;
import com.mercury.article.mapper.HomeArticleDetailMapper;
import com.mercury.article.service.HomeArticleDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author zwn
 * @since 2021-10-26
 */
@Service
public class HomeArticleDetailServiceImpl extends ServiceImpl<HomeArticleDetailMapper, HomeArticleDetail> implements HomeArticleDetailService {

    /**
     * @date 2021/11/7 16:03
     * @params id
     * @return
     * @description 查询文章详情方法，需要在articleService中调用
    */
    @Override
    public HomeArticleDetail getDetailById(String id) {
        HomeArticleDetail articleDetail = baseMapper.selectById(id);
        return articleDetail;
    }
}
